<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>分类列表</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap.min.css">

<!-- 可选的Bootstrap主题文件（一般不用引入） -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/js/common/bootstrap/css/bootstrap-theme.min.css">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script
	src="${pageContext.request.contextPath }/js/common/bootstrap/js/bootstrap.min.js"></script>

</head>
<body>
	<hr>
		<form action="http://127.0.0.1:8081/bsc/jhy/classList"
			method="post" class="form-inline" id="myform">
			<table border="0" cellspacing="0" cellpadding="10" width="100%">
				<tr>
					<td></td>
					<td width="10%" align="right">分类名称：</td>
					<td><input type="text" id="type_name" name="type_name"
						value="" class="form-control" /></td>
					<td width="60%" rowspan="2">&nbsp; &nbsp; &nbsp;
						<button class="btn btn-primary btn-sm" type="submit">
						<span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询</button>
						<button type="reset" class="btn btn-primary btn-sm">
						<span class="glyphicon glyphicon-primary" aria-hidden="true">重置</button> 
						<!--新增按钮 -->
						<a href="addType" class="btn btn-primary btn-sm" role="button">
						<span class="glyphicon glyphicon-plus" aria-hidden="true">新增</a>
					</td>
				</tr>
			</table>
		</form>

		<hr>


		<table data-toggle="table" class="table table-condensed table-striped">
			<tr>
			<td></td>
				<td>分类名称</td>
				<td>备注</td>
				<td>排序号</td>
				<td>更新时间</td>
				<td></td>
			</tr>
			<c:forEach items="${list }" var="bnt">
				<tr><td></td><td style="display: none;">${bnt.type_id }</td>
					<td>${bnt.type_name }</td>
					<td>${bnt.type_remark }</td>
					<td>${bnt.sort_no }</td>
					<td>${bnt.modify_time }</td>
					<td><a class="btn btn-primary btn-xs"
						href="delType/${bnt.type_id }" role="button"> <span
							class="glyphicon glyphicon-trash" aria-hidden="true"></span> 删除
					</a>
					<a class="btn btn-primary btn-xs"
						href="queryTypeById/${bnt.type_id }" role="button">
						 <span class="glyphicon glyphicon-cog" aria-hidden="true"></span> 修改
					</a>
					</td>

				</tr>
			</c:forEach>
		</table>



</body>
</html>